package cn.szzsi.platform.controller.admin;

import cn.szzsi.common.util.CommonUtil;
import cn.szzsi.model.CompanyAuthLog;
import cn.szzsi.model.CompanyInfo;
import com.jfinal.core.Controller;

import java.util.List;

/**
 * Created by admin on 2017/6/28.
 */
public class CompanyAuthLogController extends Controller{

    public void list(){
        String companyInfoId=getPara("companyInfoId");
        setAttr("companyInfoId",companyInfoId);
        render(CommonUtil.TEMPLATE_PATH+"/platform/companyauthlog/company_auth_log_list.html");
    }
    public void ajaxlist(){
        String companyInfoId=getPara("companyInfoId");
        List<CompanyAuthLog> lcal = CompanyAuthLog.dao.find("select * from sys_company_auth_log where companyInfoId=? order by createDate",companyInfoId);
        renderJson(lcal);
    }

}
